<template>
	<view class="content">

		
		
		<!--<view class="panel_box">
			<view class="box_title">
				<view class="title_left">仓库信息</view>
				<view class="title_right"></view>
			</view>
			
			<view class="panel_content" v-if="storeInfo[storeItem[0].val]">
				<view class="panel_content_item" v-for="(item,index) in storeItem" :key="index">{{item.name}}：{{storeInfo[item.val]}} </view>
			</view>
			
			<view class="popup_form"> 
				<view style="margin:auto;margin-top: 30rpx; margin-bottom: 20rpx; width: 60%;">
					<button type="default" class="button"  size="mini" style="width:100%;background-color: #910a15;color: #fff; font-size: 30rpx;" @click="storeShow=true">选择仓库</button>				
				</view>
			</view>
		</view>-->
		
		
		<view class="panel_box">
			<view class="box_title">
				<view class="title_left">人员信息</view>
				<view class="title_right"></view>
			</view>
			
			<view class="panel_content" v-if="salerInfo[salerItem[0].val]">
				<view class="panel_content_item" v-for="(item,index) in salerItem" :key="index">{{item.name}}：{{salerInfo[item.val]}} </view>
			</view>
			
			<view class="popup_form"> 
				<view style="margin:auto;margin-top: 30rpx; margin-bottom: 20rpx; width: 60%;">
					<button type="default" class="button"  size="mini" style="width:100%;background-color: #910a15;color: #fff; font-size: 30rpx;" @click="salerShow=true">选择盘点人员</button>				
				</view>
			</view>
		</view>
		
		
		
		<view class="panel_box">
			<view class="box_title">
				<view class="title_left">产品信息</view>
				<view class="title_right"></view>
			</view>
			<view class="popup_form">
				<view class="product_list">
					<view v-for="(item,index) in products" :key="index" class="product_item">
						<view class="product_title">
							<view class="product_title_left">{{item.cInvName}}</view>
							<view class="product_title_right">
								<uni-icons @click="delProduct(index)" type="closeempty" color="#9a9a9a" :size="icons[34]" />
							</view>
						</view>
						
						<view class="product_desc">产品名称：{{item.cInvName}}</view>
						<view class="product_desc">产品型号：{{item.cInvCode}}</view>
						<view class="product_desc" v-if="item.cInvStd">产品规格：{{item.cInvStd}}</view>
						<view class="product_num">
							<view class="form_item_input">
								<input v-model="products[index]['iQuantity']" @input="computeData(index)" type="text" class="uni-input"  placeholder-style="color:#a9a9a9"  placeholder="卷数" />
							</view>

							<view class="product_num_text">盘点数量：</view>
						</view>

					</view>
				</view>
				<view style="margin:auto;margin-top: 30rpx; margin-bottom: 20rpx; width: 60%;">
					<button type="default" class="button"  size="mini" style="width:100%;background-color: #910a15;color: #fff; font-size: 30rpx;" @click="scanCodeEvent" >添加产品</button>				
				</view>

			</view>
		</view>
		
		
		<view class="panel_top">
			<view class="box_title">
				<view class="title_left">其他信息</view>
				<view class="title_right" ></view>
			</view>
		</view>
		
		<view class="panel_box">
			<view class="panel_box_title"></view>
			<view class="popup_form" >
				<u--form labelPosition="left" :model="formData" :rules="rules" ref="form">
					<u-form-item  prop="mark" labelWidth="80" borderBottom   >
						<u--textarea v-model="formData.mark" placeholder="请输入备注" count ></u--textarea>
					</u-form-item>
				</u--form>
			</view>
		</view>
		
		<view style="margin-top: 80rpx; margin-bottom: 80rpx; width: 90%; float: right;" >
			<button type="default" class="button" style="background-color: #910a15;color: #fff; font-size: 30rpx;" @click="submitForm()">提交申请</button>				
		</view>

		<!--<data-list-popup :show.sync="storeShow" :dataInfo.sync="storeInfo" :dataItem.sync="storeItem" url="/api/Order/u8WhareHouse"></data-list-popup>-->
		<data-list-popup :show.sync="salerShow" :dataInfo.sync="salerInfo" :dataItem.sync="salerItem" url="/api/User/appUserList"></data-list-popup>
	</view>
</template>


<script>
	import  parentPage from '@/common/parent-page.js';
	import {index} from './index.js';
	export default {mixins: [parentPage,index]}
</script>



<style>
	@import './index.css';
</style>
